package com.cwl.pattern.中介者模式;

/**
 * @program: pattern
 * @description: 具体的同时类B
 * @author: ChenWenLong
 * @create: 2019-07-09 22:19
 **/
public class ConcreteColleagueB extends Colleague {

    public void receive() {
        System.out.println("具体同事类B收到请求。");
    }

    public void send() {
        System.out.println("具体同事类B发出请求。");
        mediator.register(this); //请中介者转发
    }
}
